<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/include/head.jsp"%>
<div class="pageHeader" ${TODO=='INC_PAGER'?'style="display:none"':''}>
	<form rel="pagerForm" id="searchForm" onsubmit="return navTabSearch(this);" action="notice/noticePager.do?ACTION=${ACTION}&TODO=${TODO}" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						消息内容:
						<input type="text" size="15" name="map.noticeDesc_L" value="${pager.scMap.noticeDesc_L}">
						审核状态:
				    	<select name="map.readStatus">
							<option value="">请选择</option>
				    	</select>
		      		</td>
				</tr>
			</table>
		 		<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>

<div class="panelBar" ${TODO=='INC_PAGER'?'style="display:none"':''}>
	<ul class="toolBar">
		<li><a class="icon" href='javascript:exportExcel($("#searchForm",navTab.getCurrentPanel()), $("#pagerForm",navTab.getCurrentPanel()))' title="确实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		<li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印</span></a></li>
	</ul>
</div>

<div layoutH="116" id="w_list_print">
	<table class="table" width="98%" targetType="navTab" asc="asc" desc="desc">
		<thead>
			<tr>
				<th width="30">No.</th>
				<th orderField="noticeDesc" <c:if test='${pager.orderField=="noticeDesc"}'>class="${param.orderDirection}"</c:if>>消息内容</th>
				<th width="105" orderField="noticeType" <c:if test='${pager.orderField=="noticeType"}'>class="${param.orderDirection}"</c:if>>消息类型</th>
				<th width="205" orderField="createDate" <c:if test='${pager.orderField=="createDate"}'>class="${param.orderDirection}"</c:if>>发送时间</th>
				<th width="75" orderField="readStatus" <c:if test='${pager.orderField=="readStatus"}'>class="${param.orderDirection}"</c:if>>阅读状态</th>
				<th width="100">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${pager.resultList}" var="item" varStatus="varStatus">
				<tr target="sid_${entity }" rel="${item.id}">
					<td align="right">${varStatus.count}</td>	
					<td><a target="navTab" href="notice/toNoticeEditor/${item.id}.do?&funId=${funId}" rel="dsEditor">${item.noticeDesc}</a></td>
					<td>${Dict.getAlias('NOTICE_TYPE',item.noticeType)}</td>
					<td>${item.createDate}</td>
					<td>${Dict.getAlias('READ_STATUS',item.readStatus)}</td>
					<td>
						<a title="预览导师" target="_blank" href="m/readMessage/${item.id}.do" >预览</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<jsp:include page="../include/pagerDiv.jsp" flush="true" />